import request from '@/utils/request';

export async function RoleList(params) {
  return request('/api/Role/RoleList', {
    method: 'post',
    data: params,
  })
}

export async function RoleModuleList(params) {
  return request('/api/Role/RoleModuleList', {
    method: 'post',
    data: params,
  })
}

export async function RoleAdd(params) {
  return request('/api/Role/RoleAdd', {
    method: 'post',
    data: params,
  })
}

export async function RoleModuleAdd(params) {
  return request('/api/Role/RoleModuleAdd', {
    method: 'post',
    data: params,
  })
}

export async function RoleEdit(params) {
  return request('/api/Role/RoleEdit', {
    method: 'post',
    data: params,
  })
}

export async function RoleDel(params) {
  return request('/api/Role/RoleDel', {
    method: 'post',
    data: params,
  })
}

export async function BaseModuleList(params) {
  return request('/api/Role/BaseModuleList', {
    method: 'post',
    data: params,
  })
}
